add a spec for invitation model.
continue refactoring.