controller tests for invitations
fixed broken tests after email validation