Define mappings in class scope.
Use AssertionErrors to terminate special tests.
Use pass to do nothing.
Remove unused imports.