HM/TS: added asList and asString as testutils.