add Clear method
unit test for Clear method