Add functional tests
Merge pull request #113 from pass-by-value/functional_tests

Functional tests