fix tests for portage.rb considering the changes made