implemented own error handler to throw api related errors
replaced should.js with chai + chai-as-promised, added search method tests