Add within test for getMemoryUsage