Unit test bugs fixed

Double precision fix, and tick equals

Tick equals