fix path resolution for tests