move tests to functional modules
Merge pull request #26 from dimagi/test-cleanup

move tests to functional modules