Added function stop and test to Throttler.

As this tool is widely used I prefer to create a PR to add this feature and its test.
I would suggest to keep the test case definitions as verbose as possible. I'd change this to `it("never calls the last function")`