Added the invite model class, usertests for this and invitetests