Fix current directory in tests