Added InfrastructureApi unit tests

Verify the generated content-type header and the generated body.