Fix importing error
Add tests for circuit breaker reopening occassionally