Fix tests to support Plone 5