added a test for parsing a while block