Add grammar test
Move tests into test/