Rigorous function definition and declaration tests added to test/parse-pegex.t