test for JRuby which throws different symbol/instance