small re-factoring

-- remove unused local variable in head_spec.rb
-- use non variable for expected value in sort_spec.rb