Fixed some test cases that were failing on 32bit linux due to precision problems.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>