tests: added tests, moved some code into services
merge master
Merge pull request #8 from claydotio/tests

Tests