Added test for clear method