Added InfrastructureApi unit tests

Use different values for the ips and ports (management ip/port and service ip/port pairs can't be the same), for consistency with the API and to properly validate them.