fix format string error
Improve test by making it less dependent on the current working directory