Improved test case to check for size changes after insert and delete