Rewrite validations in mocha
Switch to mocha testing in travis