add test cases for class and teacher