alter setup_tst_memory to take a test.mem rather than take a Sim object