Use the correct parser in simple parser unit test.
Extract re-usable parser code to abstract parser class.