make memory test faster and _probably_ more correct