add mocha tests, prepare for bower update