modify the tests for a synced version
implement a synced version instead of an async. fixes #1
Merge pull request #3 from webforge-labs/sync

Change API to be sync