TEST: improving memory testing