changed edgeGateway tests to use task mocking