add mocha and server code