Added InfrastructureApi unit tests

Use the `assertAccept` method.