Added InfrastructureApi unit tests

Verify the generated body.