WIP #13: added 'clear' API and corresponding test, needs to investigate why it fails :)