Fix tests in the presences of `ast` 2.0.0

@bbatsov

`AST::Node` now implements `#eql?` which allows node equality checking.
Unfortunately this is not what was intended in Rubocop, so now we must
check object identity explicitly.