Added the test code for precedence.