Added InfrastructureApi unit tests

You are verifying the request path and the request headers, but you are not checking that the client is generating the expected body.