fixes path handling in test to be more robust and work with Pkg.test