Added integration test for dynamic search query.