Add test to make sure double values are not cast to int.