Fix test dir path issues in test file.