Added test using ActiveRecord result sets.