fix broken deployment
add mocha tests