fixed failing test, added controller functionality to add invitations on match