unit tests for User and Invitation models