add functional tests
Merge pull request #34 from nwlunatic/add_functional_tests

add functional tests