Add tests for undefined totalSize.