Fix minor issue in api test to deal with new generated jruby objects