Extract submitQuery function in tests
Allow browsing to next question