test delete a class