Merge and adapt tests from https://github.com/plone/plone.app.relationfield/pull/7