tests: make test run correctly when using maven