Removed explicit casts from double to float in test code