Fix flaky doctests, hash() under tox adds random number by default. Include memory tests in tox.