allow chaining on clear method. also a test