divisible by 3 test fails - not defined