Added test for precedences; Tested and-precedence