validateTestRun() function factored out in ld_8bit_memwrite_tests.js