Add a test to reproduce the issue #23
Fix issue #23 where the query string was passed to the trie query.