Add simple mocha tests
implemented escaping search terms

fixed escaping search terms