If you've specified a <test> element for your API then
the class are generated in a com/mycompany/apiname/api
The test target also tries to run them in this directory.
The directory is incorrect as it does not contain the
API but the tests for the API.
The directory should be com/mycompany/apiname/tests