test removing of extension name