Better tests for memory