adding test for memory