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

First test and evtl. fix, then revert the revert.

Reverts plone/plone.app.blob#11