Fix warnings in tests

1. Fixed warnings in Sidekiq test code
2. Fixed a warning in lib/sidekiq/core_ext.rb - the heredoc method of using class_eval doesn't use variables in the caller's scope.

Addresses issue #1578