test memory use