Ported to plone.app.testing

Port to plone.app.testing and PEP8