Add test for debounce immediate flag