Those errors are indicative of a correct build that’s being run incorrectly. (You may be the first non-developer to even RUN the unit tests…they’re not really meant for the public, but they’re not worth the trouble to remove).
The second error means you’ve failed to specify a path to the database properly. It will cause the first error under some circumstances.
The “main” way to run them is from the main mini directory, type:
test/run.py -database /path/to/database
If you are trying to run just one library’s worth, navigate to build/test/a/bunch/of/folders/ until you find, say, core.test.
Then, core.test -datbase /path/to/database plus other options.