test while loop