Add oneline function test case and update grammar