Generalised test for EarlyParser and LeftCornerParser.