Fix tests

- ensure file exists instead of comparing the paths