Very basic test coverage for searching

Little more than a sanity check of the code. This involved a slight refactor
of the controller to make the search client easier to mock, and the addition
of the mocha gem.