Precedence tests for parser

Address #38.