port and test actor mixin from sidekiq