Fixed #129 -- auto_query now works as expected.

Modified tests since "text" is the main document, which
doesn't make sense to use "startswith".