refactor tests to use plone.app.testing. pep8