while and if tests