In my experience production test flying was carried out by pilots employed by the manufacturer. They were usually ex military or civil qualified test pilots trained by ETPS or USAF or similar institutions.
Post maintenance test flying was sponsored by a company, ie: an airline and they just appoint line drivers with experience/interest/background to do post mtce test flights. No special endorsement or rating required.