small refactoring of parser tests ( added base class )