Test the return value of advanced_search

It's not just an array of documents, so we should be explicit about it.
Test the app.rb implementation of advanced_search