[nemo-qml-plugin-contacts] Fix tests

Some recent breakage, plus failures due to hash randomization in Qt5.