setup test environment
document tests
noqa only on imports in tests/shared.py
test deferred
rm redundant branches from deferred
Merge branch 'feature-tests'