fix throttle, debounce, add tests
fix throttle, debounce, add tests