added test examples
moved error log to mocha
Merge pull request #25 from damassi/test-example

Test examples