Switching to proper assertion based testing through mocha and chai