change while to for loop
change log output
exit stage in test