Fixed inability of test files to determine their base directory