Replaced assert with repetitive assert for test stability