Ported tests to plone.app.testing

Ported tests to plone.app.testing
Some minor cleanups found by pyroma, pep8ify and frosted