Added multithread memory test.