minimal regression tests
fix expunge deferreds so they wait
fix memoized call returning always None
Merge remote-tracking branch 'refs/remotes/kali/feature/regression-tests' into develop