MDL-47900 tool_monitor: fixed unit tests so they pass

Also expanded on the unit tests to confirm that the unnecessary
events are not being stored in the DB.