test for .clear()
implemented .clear()