TST: change a small float comparison to np.allclose (GH4306)

closes #4306