Fix precision error in double generator test