added basic mocha tests. see #18
Update test with relevant fixes
Merge pull request #25 from pgilad/master

added basic mocha tests. see #18