tests: ensure that handles with domain part are matched