added test for getExtension