test cases for app model