Fix rate calculation

- Fix the bug: rate reset on every success request
- add some tests to check high level behaviour of circuit_breaker
- make rate information public through public method
This method is in the public API of the class, but without knowing the internals, I don't know what is an open flag. I'd rather rename it to `reset!` or `reset_failure_count!`.