added test cases for models