Add add_ampl_test function.