added specs in mocha + chai, Fixes #4