Fix typo in offset computation
Reduce required accuracy for test
Use tolerance in update func