Can you move this and the test over to query_command.rb? That way `gem search`, `gem query` and `gem list` all behave the same way.