fixed a test case for getExtension().