Fix test_stats.py floating point test failure

Partially addresses #1347.