Add mocha tests and turn on travis