Fixed tests to work as earlier.

Added decorator for  to make debounce to work as usual even that we have included  from angular-mocks.
Added unit test for using .flush() when writing test for code that uses debounce.