add try-catch
add debounce test cases and occurs2