Made test more reliable.