get rid of hand-wavey .closeTo() tests; add fixFloatingPoint function