Fixed some issues with tests after making changes to invitation model.