use assert_nil vs .nil? (fix for jruby?)