add tests for test_cbar_debounce + actually fix debounce
test_cbar_debounce: add flapping test