Revert "Remove unused code in MemorySizeCalculatorTest."

This reverts commit 913e45915bd8aebd6e419d727020f6efc5d80ac6.