integration tests for models