One missing return statement can be so much trouble...
Don't clear data when testing