Fix tests on Plone 4.1, request/ACTUAL_URL could fail, implement the same fix implemented at p.a.layout: https://github.com/plone/plone.app.layout/commit/46921d9f2c6f08e600167f5c4ae8669fa5fe3526