add test if there is no extension and invalid extension