test cases for models and routes