Fix tests in the presence of `ast` 2.0.0

`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.
Merge pull request #1023 from tamird/fix-new-parser

Fix tests in the presences of `ast` 2.0.0