add test case for models