fixed test of loopBack connection in each request
added check for authenticatedUserId in loopBack connection in each request test