adding cases model and integration test