Write some more tests

@phuu this isn't working right now and I'd love your (and other's) insight into why, as I'm stuffed. (See my comment in tests/searching.js).

It seems in middleman the `request` call is never firing. The callback to `request` never gets invoked. Grab me on Skype some time.