added while_test.py