Add model spec
Add spec for repository
Add unit test