Reindent the testcases
<anything> is an implementation detail and does not belong in allowed_tags

Incidentally, this change also fixes the last @expectedFailure.
Fix all flake8 warnings