Added InfrastructureApi unit tests

Verify the content-type header and the body.