add tests around cloning functions
Merge pull request #2 from wilmoore/function-tests

add tests around cloning functions