improved lhapdf tests in configure script