Precedence tests for parser

For easy reading, this test should be placed after `_assert_equivalent` is defined.