 				email: "doug@sharelatex.com"
 				password: "should-not-get-included"
 				signUpDate: new Date()
+				role:"student"
+				institution:"sheffield"
 			@UserInfoController._formatPersonalInfo @user, (error, info) =>
 				expect(info).to.deep.equal {
 					id: @user._id.toString()

			updatePersonalInfo: sinon.stub()
		@sanitizer = escape:(v)->v
		sinon.spy @sanitizer, "escape"
		@UserInfoController = SandboxedModule.require modulePath, requires:
			"./UserGetter": @UserGetter = {}
			"./UserUpdater": @UserUpdater
			"./UserDeleter": @UserDeleter
			"sanitizer":@sanitizer

		@req = new MockRequest()

			@user =
				_id: ObjectId()
			@req.user = @user
			@req.session.user = @user
			@UserInfoController.sendFormattedPersonalInfo = sinon.stub()
			@UserGetter.getUser = sinon.stub().callsArgWith(2, null, @user)
			@UserInfoController.getLoggedInUsersPersonalInfo(@req, @res, @next)

		it "should call sendFormattedPersonalInfo", ->
