improve(tests): cleanup parser comparison method

Make the method more general. Now only add parser names in the list,
method takes care of the rest.