Add mocha tests for searching and front page