More tests.  Deleted obsolete code of caching stats.

Not needed anymore since calculations are now so fast.