while and tests