integration test for grammar