added unit test cases for models