Unit test coverage for clear, #25