Added model spec and integration tests.