Add test about the clear method (100% coverage)