correct minus sign error in zeropoint definition and add test
(#547)