Add schemaextender tests.
Fix pep8 in extender.