improve pin tests