Unit tests for DNS lookup resuls and APIClient operations