Test: Adds back stats test.
Code: Fixes condition.