added while keyword test