Added Mocha Tests
fixed test