Removed unused variables from spec.
Avoid running RubyProf on JRuby since it isn't supported.