Add mocha testing to frontend