Added InfrastructureApi unit tests

If we are doing more than just an HTTP request, then we must also check that behavior. Add a test for the case when the "find" does not find any result.