India and Japan have signed a pact that the former country says will improve the quality and testing of its textiles and clothing for the Japanese market.