Add tests and fix the comparison operator.

Also, throw an error when relative and non relative deltas are compared.