Small changes to tests that use statistics