add test case to show peak memory usage is larger than current memory usage