Add tests for all classes exist check.