Check closeness in unit test