adds unit tests for Discourse.debouncePromise