adds unit tests for Discourse.debounce
Merge pull request #1489 from velesin/debounce_tests

adds unit tests for Discourse.debounce