added initial functions test snippets, and start of function parsing,
and added first step of idempotent testing to snippets (which fails!)