added a test for clear