test for memory