Made HubCallerContext easier for mock unit testing

#3012