amended test to take into account double precision