add test for memory_usage.