Revert "Revert "Revert "Ported tests to plone.app.testing and pep8"""

Reverts plone/plone.app.blob#12