Fix heisenbug with tests
Refactor sidekiq_retry_in impl