add memory usage test