Make parse_basic_q function work again.

Regressions had made this stop working: Parslet changed an exception
class name, and refactors to blacklight_advanced_search required a new
explicit require.

Also includes a test that would have caught these regressions.