Adds functional tests
Merge pull request #10 from localmed/MR-18/functional-tests

Adds functional tests