BUGFIX+Added some regression testing

Now that the precedence is correct, it will actually work.