using new way of task mocking for edgegateway tests