add some func tests.
Merge pull request #32 from formapro-forks/tests

add some func tests.