Testing of and estimation subject to inequality restrictions using a minimum distance estimator