fix test to run from tmp directory to be more portable