Added InfrastructureApi unit tests

You are still not verifying the generated body. Please do it.