corrected test for extension