Added InfrastructureApi unit tests

You are not testing the infrastructure api here. Just the raw client, which is already tested.