Added InfrastructureApi unit tests

Same here: verify the content-type and the generated body.