Refactor tests to use TemporalMemoryMonitorMixin

Fixes https://github.com/numenta/nupic.research/issues/43.
Depends on https://github.com/numenta/nupic/pull/1371.

cc: @subutai