Add test for RubyArray::keepIf