Implemented es_clean_up: added tests for deleteType.