Added InfrastructureApi unit tests

Verify the content-type and the generated body.