the PR should have updated it to var userApiClient = mockableObject.make('checkToken'); as the checkPermissons was deleted. userApiClient is passed to the message service