Infinite Loop: Not sure Why? in testing