more monitor tests

found and fixed bug in monitor.clear()