Refactor TemporalMemoryTestMachine into a TemporalMemory subclass

Fixes #1289 

Requesting cursory review: @subutai 
nit: double quotes