safer handling of path of test file