Added InfrastructureApi unit tests

No request to verify?

Also add a test for the case when the network service type is not found.