Fixed error when deleting test category