Ported tests from Hyperclient.