add grammar test for function declaration.