Rack::Attack test improvements
Abstract batch logic to batch helper
Gemfile.lock update