Better fix for parsing/testing, by inheriting from lexer_impl

This relevant ancestor theory wasn't being used, and so the test-suite
missed out on the changes made in 02d4772a.