TESTING: added more while loop test cases