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

					last_name: @user.last_name
					email: @user.email
					signUpDate: @user.signUpDate
				}

	describe "setPersonalInfo", ->

			@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", ->
