Port QPDofContactsTest.