I get this error with either the test.xqm found in the BaseX GitHub repo or a copy of the file taken from the web page:

% basex test test.xqm
Stopped at /Users/jonathan/github/basex/basex-core/src/test/resources/, 1/5:
[XPDY0002] test: Context is undeclared.

What am I doing wrong?

Jonathan