use allclose instead of equality, per code review