Refactored temporal memory test framework