Clean up
Test for incorrect extension type