Repository: hedyorg/hedy

Issue:
Turtle should not be shown in level 6 programs with numbers
Turtle is now shown in some cases:

![image](https://user-images.githubusercontent.com/1003685/130324043-1beec018-2dcb-497e-be75-035c5e6dc671.png)

Violating code:
```
nummer is 5
nummertwee is 6
getal is nummer * nummertwee
print getal
```
Turtle should not be shown in level 6 programs with numbers
Turtle is now shown in some cases:

![image](https://user-images.githubusercontent.com/1003685/130324043-1beec018-2dcb-497e-be75-035c5e6dc671.png)

Violating code:
```
nummer is 5
nummertwee is 6
getal is nummer * nummertwee
print getal
```


Discussion:

Resolving patch:
diff --git a/hedy.py b/hedy.py
--- a/hedy.py
+++ b/hedy.py
@@ -258,7 +258,13 @@ def forward(self, args):
     def turn(self, args):
         return True
 
+    # somehow a token (or only this token?) is not picked up by the default rule so it needs
+    # its own rule
+    def NUMBER(self, args):
+        return False
 
+    def NAME(self, args):
+        return False
 
 
 


Test patch:
diff --git a/tests/tests_level_05.py b/tests/tests_level_05.py
--- a/tests/tests_level_05.py
+++ b/tests/tests_level_05.py
@@ -40,6 +40,7 @@ def test_print_with_var(self):
     print('ik heet'+naam)""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 
   def test_print_with_comma(self):
@@ -54,6 +55,7 @@ def test_print_with_comma(self):
     print('ik heet,'+naam)""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_transpile_turtle_basic(self):
     result = hedy.transpile("forward 50\nturn\nforward 100", self.level)
@@ -62,6 +64,7 @@ def test_transpile_turtle_basic(self):
     t.right(90)
     t.forward(100)""")
     self.assertEqual(expected, result.code)
+    self.assertEqual(True, result.has_turtle)
 
   def test_transpile_turtle_with_ask(self):
     code = textwrap.dedent("""\
@@ -72,6 +75,7 @@ def test_transpile_turtle_with_ask(self):
     afstand = input('hoe ver dan?')
     t.forward(afstand)""")
     self.assertEqual(expected, result.code)
+    self.assertEqual(True, result.has_turtle)
 
   def test_print_Spanish(self):
     code = textwrap.dedent("""\
@@ -83,6 +87,7 @@ def test_print_Spanish(self):
     print('Cuál es tu color favorito?')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_transpile_ask_Spanish(self):
     code = textwrap.dedent("""\
@@ -94,6 +99,7 @@ def test_transpile_ask_Spanish(self):
     color = input('Cuál es tu color favorito?')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_transpile_other(self):
     with self.assertRaises(Exception) as context:
@@ -115,6 +121,7 @@ def test_repeat_basic_print(self):
       print('me wants a cookie!')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     expected_output = textwrap.dedent("""\
     me wants a cookie!
@@ -140,6 +147,7 @@ def test_repeat_with_variable_print(self):
       print('me wants a cookie!')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     expected_output = textwrap.dedent("""\
     me wants a cookie!
@@ -165,6 +173,7 @@ def test_repeat_nested_in_if(self):
         print('mooi!')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_repeat_over_9_times(self):
 
@@ -178,6 +187,7 @@ def test_repeat_over_9_times(self):
       print('me wants a cookie!')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     expected_output = textwrap.dedent("""\
     me wants a cookie!
diff --git a/tests/tests_level_06.py b/tests/tests_level_06.py
--- a/tests/tests_level_06.py
+++ b/tests/tests_level_06.py
@@ -38,6 +38,7 @@ def test_print_with_var(self):
     print('ik heet'+str(naam))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 
   def test_transpile_ask(self):
@@ -50,6 +51,7 @@ def test_transpile_ask(self):
     antwoord = input('wat is je lievelingskleur?')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_repeat_nested_in_if(self):
 
@@ -66,6 +68,7 @@ def test_repeat_nested_in_if(self):
         print('mooi!')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_repeat_with_variable_print(self):
     code = textwrap.dedent("""\
@@ -80,6 +83,7 @@ def test_repeat_with_variable_print(self):
       print('me wants a cookie!')""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     expected_output = textwrap.dedent("""\
     me wants a cookie!
@@ -97,6 +101,7 @@ def test_simple_calculation(self):
 
     expected = "nummer = int(4) + int(5)"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_simple_calculation_without_space(self):
     code = "nummer is 4+5"
@@ -104,6 +109,7 @@ def test_simple_calculation_without_space(self):
 
     expected = "nummer = int(4) + int(5)"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 
   def test_transpile_turtle_basic(self):
@@ -113,6 +119,7 @@ def test_transpile_turtle_basic(self):
     t.right(90)
     t.forward(100)""")
     self.assertEqual(expected, result.code)
+    self.assertEqual(True, result.has_turtle)
 
   def test_transpile_turtle_with_ask(self):
     code = textwrap.dedent("""\
@@ -123,6 +130,7 @@ def test_transpile_turtle_with_ask(self):
     afstand = input('hoe ver dan?')
     t.forward(afstand)""")
     self.assertEqual(expected, result.code)
+    self.assertEqual(True, result.has_turtle)
 
   def test_calculation_and_printing(self):
 
@@ -137,6 +145,7 @@ def test_calculation_and_printing(self):
     print(str(nummer))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
     self.assertEqual("9", run_code(result))
 
   def test_calculation_with_vars(self):
@@ -155,6 +164,7 @@ def test_calculation_with_vars(self):
     print(str(getal))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
     self.assertEqual("30", run_code(result))
 
   def test_print_calculation_times_directly(self):
@@ -171,6 +181,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
     self.assertEqual("30", run_code(result))
 
   def test_print_calculation_divide_directly(self):
@@ -187,6 +198,7 @@ def test_print_calculation_divide_directly(self):
     print(str(int(nummer) // int(nummertwee)))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
     self.assertEqual("0", run_code(result))
 
   def test_issue_andras(self):
@@ -213,5 +225,6 @@ def test_issue_andras(self):
         print('ok bedankt dan wordt het '+str(prijs)+' euro')""")
 
       self.assertEqual(expected, result.code)
+      self.assertEqual(False, result.has_turtle)
 
 
diff --git a/tests/tests_level_08.py b/tests/tests_level_08.py
--- a/tests/tests_level_08.py
+++ b/tests/tests_level_08.py
@@ -29,16 +29,19 @@ def test_print(self):
     result = hedy.transpile("print 'ik heet'", self.level)
     expected = "print('ik heet')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_var(self):
     result = hedy.transpile("naam is Hedy\nprint 'ik heet' naam", self.level)
     expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_calc_no_spaces(self):
     result = hedy.transpile("print '5 keer 5 is ' 5*5", self.level)
     expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_calculation_times_directly(self):
     code = textwrap.dedent("""\
@@ -54,6 +57,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     self.assertEqual("30", run_code(result))
 
@@ -61,6 +65,7 @@ def test_transpile_ask(self):
     result = hedy.transpile("antwoord is ask 'wat is je lievelingskleur?'", self.level)
     expected = "antwoord = input('wat is je lievelingskleur?')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_with_indent(self):
     code = textwrap.dedent("""\
@@ -74,6 +79,7 @@ def test_if_with_indent(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_else(self):
     code = textwrap.dedent("""\
@@ -97,6 +103,7 @@ def test_if_else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_random(self):
     code = textwrap.dedent("""\
@@ -110,6 +117,7 @@ def test_print_random(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_loop(self):
     code = textwrap.dedent("""\
@@ -128,6 +136,7 @@ def test_for_loop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if__else(self):
     code = textwrap.dedent("""\
@@ -146,6 +155,7 @@ def test_if__else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_forloop(self):
     code = textwrap.dedent("""\
@@ -160,6 +170,7 @@ def test_forloop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 
   def test_if_under_else_in_for(self):
@@ -186,6 +197,7 @@ def test_if_under_else_in_for(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     #fails, issue 363
 
@@ -207,6 +219,7 @@ def test_for_ifbug(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_loopbug599(self):
     code = textwrap.dedent("""\
@@ -222,6 +235,7 @@ def test_for_loopbug599(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 
 #programs with issues to see if we catch them properly
diff --git a/tests/tests_level_09.py b/tests/tests_level_09.py
--- a/tests/tests_level_09.py
+++ b/tests/tests_level_09.py
@@ -29,16 +29,19 @@ def test_print(self):
     result = hedy.transpile("print 'ik heet'", self.level)
     expected = "print('ik heet')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_var(self):
     result = hedy.transpile("naam is Hedy\nprint 'ik heet' naam", self.level)
     expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_calc_no_spaces(self):
     result = hedy.transpile("print '5 keer 5 is ' 5*5", self.level)
     expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_calculation_times_directly(self):
     code = textwrap.dedent("""\
@@ -54,6 +57,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     self.assertEqual("30", run_code(result))
 
@@ -61,6 +65,7 @@ def test_transpile_ask(self):
     result = hedy.transpile("antwoord is ask 'wat is je lievelingskleur?'", self.level)
     expected = "antwoord = input('wat is je lievelingskleur?')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_with_indent(self):
     code = textwrap.dedent("""\
@@ -74,6 +79,7 @@ def test_if_with_indent(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_else(self):
     code = textwrap.dedent("""\
@@ -97,6 +103,7 @@ def test_if_else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_random(self):
     code = textwrap.dedent("""\
@@ -110,6 +117,7 @@ def test_print_random(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_loop(self):
     code = textwrap.dedent("""\
@@ -128,6 +136,7 @@ def test_for_loop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if__else(self):
     code = textwrap.dedent("""\
@@ -146,6 +155,7 @@ def test_if__else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_forloop(self):
     code = textwrap.dedent("""\
@@ -160,6 +170,7 @@ def test_forloop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 
   def test_if_under_else_in_for(self):
@@ -186,6 +197,7 @@ def test_if_under_else_in_for(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_elif(self):
       code = textwrap.dedent("""\
@@ -204,6 +216,7 @@ def test_if_elif(self):
       result = hedy.transpile(code, self.level)
 
       self.assertEqual(expected, result.code)
+      self.assertEqual(False, result.has_turtle)
 
   def test_if_with_multiple_elifs(self):
       code = textwrap.dedent("""\
@@ -226,6 +239,7 @@ def test_if_with_multiple_elifs(self):
       result = hedy.transpile(code, self.level)
 
       self.assertEqual(expected, result.code)
+      self.assertEqual(False, result.has_turtle)
 
 #programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_10.py b/tests/tests_level_10.py
--- a/tests/tests_level_10.py
+++ b/tests/tests_level_10.py
@@ -29,16 +29,19 @@ def test_print(self):
     result = hedy.transpile("print 'ik heet'", self.level)
     expected = "print('ik heet')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_var(self):
     result = hedy.transpile("naam is Hedy\nprint 'ik heet' naam", self.level)
     expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_calc_no_spaces(self):
     result = hedy.transpile("print '5 keer 5 is ' 5*5", self.level)
     expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_calculation_times_directly(self):
     code = textwrap.dedent("""\
@@ -54,6 +57,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     self.assertEqual("30", run_code(result))
 
@@ -61,6 +65,7 @@ def test_transpile_ask(self):
     result = hedy.transpile("antwoord is ask 'wat is je lievelingskleur?'", self.level)
     expected = "antwoord = input('wat is je lievelingskleur?')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_with_indent(self):
     code = textwrap.dedent("""\
@@ -75,6 +80,7 @@ def test_if_with_indent(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_else(self):
     code = textwrap.dedent("""\
@@ -98,6 +104,7 @@ def test_if_else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_random(self):
     code = textwrap.dedent("""\
@@ -112,6 +119,7 @@ def test_print_random(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_loop(self):
     code = textwrap.dedent("""\
@@ -130,6 +138,7 @@ def test_for_loop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if__else(self):
     code = textwrap.dedent("""\
@@ -148,6 +157,7 @@ def test_if__else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_forloop(self):
     code = textwrap.dedent("""\
@@ -161,6 +171,7 @@ def test_forloop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_nesting(self):
     code = textwrap.dedent("""\
@@ -175,6 +186,7 @@ def test_for_nesting(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_nesting(self):
     code = textwrap.dedent("""\
@@ -193,6 +205,7 @@ def test_if_nesting(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_under_else_in_for(self):
     code = textwrap.dedent("""\
@@ -218,6 +231,7 @@ def test_if_under_else_in_for(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 #programs with issues to see if we catch them properly
 # (so this should fail, for now)
 # at one point we want a real "Indent" error and a better error message
diff --git a/tests/tests_level_11.py b/tests/tests_level_11.py
--- a/tests/tests_level_11.py
+++ b/tests/tests_level_11.py
@@ -32,16 +32,19 @@ def test_print(self):
     result = hedy.transpile("print('ik heet')", self.level)
     expected = "print('ik heet')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_var(self):
     result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
     expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_calc_no_spaces(self):
     result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
     expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_calculation_times_directly(self):
     code = textwrap.dedent("""\
@@ -57,6 +60,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     self.assertEqual("30", run_code(result))
 
@@ -64,6 +68,7 @@ def test_transpile_ask(self):
     result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
     expected = "antwoord = input('wat is je lievelingskleur?')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_with_indent(self):
     code = textwrap.dedent("""\
@@ -78,6 +83,7 @@ def test_if_with_indent(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_else(self):
     code = textwrap.dedent("""\
@@ -101,6 +107,7 @@ def test_if_else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_random(self):
     code = textwrap.dedent("""\
@@ -115,6 +122,7 @@ def test_print_random(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_loop(self):
     code = textwrap.dedent("""\
@@ -133,6 +141,7 @@ def test_for_loop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if__else(self):
     code = textwrap.dedent("""\
@@ -150,6 +159,7 @@ def test_if__else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_forloop(self):
     code = textwrap.dedent("""\
@@ -164,6 +174,7 @@ def test_forloop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_nesting(self):
     code = textwrap.dedent("""\
@@ -178,6 +189,7 @@ def test_for_nesting(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_nesting(self):
     code = textwrap.dedent("""\
@@ -196,6 +208,7 @@ def test_if_nesting(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_newprint(self):
     code = textwrap.dedent("""\
@@ -212,6 +225,7 @@ def test_newprint(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_under_else_in_for(self):
     code = textwrap.dedent("""\
@@ -237,6 +251,7 @@ def test_if_under_else_in_for(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 #programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_12.py b/tests/tests_level_12.py
--- a/tests/tests_level_12.py
+++ b/tests/tests_level_12.py
@@ -30,16 +30,19 @@ def test_print(self):
     result = hedy.transpile("print('ik heet')", self.level)
     expected = "print('ik heet')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_var(self):
     result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
     expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_with_calc_no_spaces(self):
     result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
     expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_calculation_times_directly(self):
     code = textwrap.dedent("""\
@@ -55,6 +58,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
     self.assertEqual("30", run_code(result))
 
@@ -62,6 +66,7 @@ def test_transpile_ask(self):
     result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
     expected = "antwoord = input('wat is je lievelingskleur?')"
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_with_indent(self):
     code = textwrap.dedent("""\
@@ -76,6 +81,7 @@ def test_if_with_indent(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_else(self):
     code = textwrap.dedent("""\
@@ -99,6 +105,7 @@ def test_if_else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_print_random(self):
     code = textwrap.dedent("""\
@@ -113,6 +120,7 @@ def test_print_random(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_loop(self):
     code = textwrap.dedent("""\
@@ -131,6 +139,7 @@ def test_for_loop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if__else(self):
     code = textwrap.dedent("""\
@@ -149,6 +158,7 @@ def test_if__else(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_forloop(self):
     code = textwrap.dedent("""\
@@ -163,6 +173,7 @@ def test_forloop(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_for_nesting(self):
     code = textwrap.dedent("""\
@@ -177,6 +188,7 @@ def test_for_nesting(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_if_nesting(self):
     code = textwrap.dedent("""\
@@ -195,6 +207,7 @@ def test_if_nesting(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_newprint(self):
     code = textwrap.dedent("""\
@@ -211,6 +224,7 @@ def test_newprint(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_list(self):
     code = textwrap.dedent("""\
@@ -223,6 +237,7 @@ def test_list(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_random(self):
     code = textwrap.dedent("""\
@@ -237,6 +252,7 @@ def test_random(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
   def test_specific_access(self):
     code = textwrap.dedent("""\
@@ -251,6 +267,7 @@ def test_specific_access(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 #note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
   def test_everything_combined(self):
@@ -276,6 +293,7 @@ def test_everything_combined(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
       
   def test_if_under_else_in_for(self):
     code = textwrap.dedent("""\
@@ -301,6 +319,7 @@ def test_if_under_else_in_for(self):
     result = hedy.transpile(code, self.level)
 
     self.assertEqual(expected, result.code)
+    self.assertEqual(False, result.has_turtle)
 
 #programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_13.py b/tests/tests_level_13.py
--- a/tests/tests_level_13.py
+++ b/tests/tests_level_13.py
@@ -32,16 +32,19 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 
     def test_print_calculation_times_directly(self):
@@ -58,13 +61,14 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
-
+        self.assertEqual(False, result.has_turtle)
         self.assertEqual("30", run_code(result))
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_with_indent(self):
         code = textwrap.dedent("""\
@@ -78,6 +82,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -100,6 +105,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -113,6 +119,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -130,6 +137,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -147,6 +155,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -160,6 +169,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -173,6 +183,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -190,6 +201,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -205,6 +217,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -216,6 +229,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -229,6 +243,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -242,6 +257,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -266,6 +282,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -290,6 +307,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -303,6 +321,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -315,6 +334,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -328,6 +348,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -341,6 +362,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -364,6 +386,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_14.py b/tests/tests_level_14.py
--- a/tests/tests_level_14.py
+++ b/tests/tests_level_14.py
@@ -33,21 +33,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -63,6 +67,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -78,6 +83,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -100,6 +106,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -113,6 +120,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -130,6 +138,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -147,6 +156,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -160,6 +170,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -173,6 +184,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -190,6 +202,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -205,6 +218,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -216,6 +230,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -229,6 +244,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -242,6 +258,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -266,6 +283,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -290,6 +308,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -303,6 +322,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -315,6 +335,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -328,6 +349,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -341,6 +363,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -364,6 +387,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -375,6 +399,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -386,6 +411,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_15.py b/tests/tests_level_15.py
--- a/tests/tests_level_15.py
+++ b/tests/tests_level_15.py
@@ -32,21 +32,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -62,6 +66,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -78,6 +83,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -100,6 +106,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -113,6 +120,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -130,6 +138,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -147,6 +156,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -160,6 +170,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -173,6 +184,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -190,6 +202,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -205,6 +218,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -216,6 +230,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -229,6 +244,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -242,6 +258,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -266,6 +283,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -290,6 +308,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -303,6 +322,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -315,6 +335,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -328,6 +349,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -341,6 +363,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -364,6 +387,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -375,6 +399,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -386,6 +411,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_comment(self):
         code = textwrap.dedent("""\
@@ -398,6 +424,7 @@ def test_comment(self):
       # ['comment']""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentbegin(self):
         code = textwrap.dedent("""\
@@ -411,6 +438,7 @@ def test_commentbegin(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentresult(self):
         code = textwrap.dedent("""\
@@ -424,6 +452,7 @@ def test_commentresult(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_16.py b/tests/tests_level_16.py
--- a/tests/tests_level_16.py
+++ b/tests/tests_level_16.py
@@ -32,21 +32,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -62,6 +66,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -78,6 +83,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -100,6 +106,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -113,6 +120,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -130,6 +138,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -147,6 +156,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -160,6 +170,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -173,6 +184,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -190,6 +202,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -205,6 +218,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -216,6 +230,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -229,6 +244,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -242,6 +258,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -266,6 +283,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -290,6 +308,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -303,6 +322,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -315,6 +335,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -328,6 +349,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -341,6 +363,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -364,6 +387,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -375,6 +399,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -386,6 +411,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_comment(self):
         code = textwrap.dedent("""\
@@ -398,6 +424,7 @@ def test_comment(self):
       # ['comment']""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentbegin(self):
         code = textwrap.dedent("""\
@@ -411,6 +438,7 @@ def test_commentbegin(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentresult(self):
         code = textwrap.dedent("""\
@@ -424,6 +452,7 @@ def test_commentresult(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller(self):
         code = textwrap.dedent("""\
@@ -437,6 +466,7 @@ def test_smaller(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bigger(self):
         code = textwrap.dedent("""\
@@ -450,6 +480,7 @@ def test_bigger(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_big_and_small(self):
         code = textwrap.dedent("""\
@@ -467,6 +498,7 @@ def test_big_and_small(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_17.py b/tests/tests_level_17.py
--- a/tests/tests_level_17.py
+++ b/tests/tests_level_17.py
@@ -32,21 +32,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -62,6 +66,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -77,6 +82,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -99,6 +105,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -112,6 +119,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -129,6 +137,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -146,6 +155,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -159,6 +169,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -172,6 +183,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -189,6 +201,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -204,6 +217,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -215,6 +229,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -228,6 +243,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -241,6 +257,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -265,6 +282,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -289,6 +307,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -302,6 +321,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -314,6 +334,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -327,6 +348,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -340,6 +362,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -363,6 +386,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -374,6 +398,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -385,6 +410,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_comment(self):
         code = textwrap.dedent("""\
@@ -397,6 +423,7 @@ def test_comment(self):
       # ['comment']""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentbegin(self):
         code = textwrap.dedent("""\
@@ -410,6 +437,7 @@ def test_commentbegin(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentresult(self):
         code = textwrap.dedent("""\
@@ -423,6 +451,7 @@ def test_commentresult(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller(self):
         code = textwrap.dedent("""\
@@ -436,6 +465,7 @@ def test_smaller(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bigger(self):
         code = textwrap.dedent("""\
@@ -449,6 +479,7 @@ def test_bigger(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_big_and_small(self):
         code = textwrap.dedent("""\
@@ -466,6 +497,7 @@ def test_big_and_small(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop(self):
         code = textwrap.dedent("""\
@@ -483,6 +515,7 @@ def test_whileloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop2(self):
         code = textwrap.dedent("""\
@@ -502,6 +535,7 @@ def test_whileloop2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop3(self):
         code = textwrap.dedent("""\
@@ -523,6 +557,7 @@ def test_whileloop3(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_18.py b/tests/tests_level_18.py
--- a/tests/tests_level_18.py
+++ b/tests/tests_level_18.py
@@ -32,21 +32,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -62,6 +66,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -78,6 +83,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -100,6 +106,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -113,6 +120,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -130,6 +138,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -147,6 +156,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -160,6 +170,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -173,6 +184,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -190,6 +202,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -205,6 +218,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -216,6 +230,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -229,6 +244,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -242,6 +258,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -266,6 +283,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -290,6 +308,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -303,6 +322,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -315,6 +335,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -328,6 +349,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -341,6 +363,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -364,6 +387,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -375,6 +399,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -386,6 +411,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_comment(self):
         code = textwrap.dedent("""\
@@ -398,6 +424,7 @@ def test_comment(self):
       # ['comment']""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentbegin(self):
         code = textwrap.dedent("""\
@@ -411,6 +438,7 @@ def test_commentbegin(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentresult(self):
         code = textwrap.dedent("""\
@@ -424,6 +452,7 @@ def test_commentresult(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller(self):
         code = textwrap.dedent("""\
@@ -437,6 +466,7 @@ def test_smaller(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bigger(self):
         code = textwrap.dedent("""\
@@ -450,6 +480,7 @@ def test_bigger(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_big_and_small(self):
         code = textwrap.dedent("""\
@@ -467,6 +498,7 @@ def test_big_and_small(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop(self):
         code = textwrap.dedent("""\
@@ -484,6 +516,7 @@ def test_whileloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop2(self):
         code = textwrap.dedent("""\
@@ -503,6 +536,7 @@ def test_whileloop2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop3(self):
         code = textwrap.dedent("""\
@@ -524,6 +558,7 @@ def test_whileloop3(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_access_plus(self):
         code = textwrap.dedent("""\
@@ -541,6 +576,7 @@ def test_access_plus(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_19.py b/tests/tests_level_19.py
--- a/tests/tests_level_19.py
+++ b/tests/tests_level_19.py
@@ -30,21 +30,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam is Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord is input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -60,6 +64,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -75,6 +80,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -97,6 +103,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -110,6 +117,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -127,6 +135,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -144,6 +153,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -157,6 +167,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -170,6 +181,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -187,6 +199,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -202,6 +215,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -213,6 +227,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -226,6 +241,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -239,6 +255,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -263,6 +280,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -287,6 +305,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -300,6 +319,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -312,6 +332,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -325,6 +346,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -338,6 +360,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -361,6 +384,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -372,6 +396,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -383,6 +408,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_comment(self):
         code = textwrap.dedent("""\
@@ -395,6 +421,7 @@ def test_comment(self):
       # ['comment']""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentbegin(self):
         code = textwrap.dedent("""\
@@ -408,6 +435,7 @@ def test_commentbegin(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentresult(self):
         code = textwrap.dedent("""\
@@ -421,6 +449,7 @@ def test_commentresult(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller(self):
         code = textwrap.dedent("""\
@@ -434,6 +463,7 @@ def test_smaller(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bigger(self):
         code = textwrap.dedent("""\
@@ -447,6 +477,7 @@ def test_bigger(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_big_and_small(self):
         code = textwrap.dedent("""\
@@ -464,6 +495,7 @@ def test_big_and_small(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop(self):
         code = textwrap.dedent("""\
@@ -481,6 +513,7 @@ def test_whileloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop2(self):
         code = textwrap.dedent("""\
@@ -500,6 +533,7 @@ def test_whileloop2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop3(self):
         code = textwrap.dedent("""\
@@ -521,6 +555,7 @@ def test_whileloop3(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_access_plus(self):
         code = textwrap.dedent("""\
@@ -538,6 +573,7 @@ def test_access_plus(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
     def test_length(self):
         code = textwrap.dedent("""\
     fruit is ['appel', 'banaan', 'kers']
@@ -550,6 +586,7 @@ def test_length(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_length2(self):
         code = textwrap.dedent("""\
@@ -563,6 +600,7 @@ def test_length2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_length(self):
         code = textwrap.dedent("""\
@@ -578,6 +616,7 @@ def test_print_length(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_20.py b/tests/tests_level_20.py
--- a/tests/tests_level_20.py
+++ b/tests/tests_level_20.py
@@ -31,21 +31,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam = Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord = input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -61,6 +65,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -76,6 +81,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -98,6 +104,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -111,6 +118,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -128,6 +136,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -145,6 +154,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -158,6 +168,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -171,6 +182,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -188,6 +200,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -203,6 +216,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -214,6 +228,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -227,6 +242,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -240,6 +256,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -264,6 +281,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -288,6 +306,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -301,6 +320,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -313,6 +333,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -326,6 +347,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -339,6 +361,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -362,6 +385,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -373,6 +397,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -384,6 +409,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_comment(self):
         code = textwrap.dedent("""\
@@ -396,6 +422,7 @@ def test_comment(self):
       # ['comment']""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentbegin(self):
         code = textwrap.dedent("""\
@@ -409,6 +436,7 @@ def test_commentbegin(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentresult(self):
         code = textwrap.dedent("""\
@@ -422,6 +450,7 @@ def test_commentresult(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller(self):
         code = textwrap.dedent("""\
@@ -435,6 +464,7 @@ def test_smaller(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bigger(self):
         code = textwrap.dedent("""\
@@ -448,6 +478,7 @@ def test_bigger(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_big_and_small(self):
         code = textwrap.dedent("""\
@@ -465,6 +496,7 @@ def test_big_and_small(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop(self):
         code = textwrap.dedent("""\
@@ -482,6 +514,7 @@ def test_whileloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop2(self):
         code = textwrap.dedent("""\
@@ -501,6 +534,7 @@ def test_whileloop2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop3(self):
         code = textwrap.dedent("""\
@@ -522,6 +556,7 @@ def test_whileloop3(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_access_plus(self):
         code = textwrap.dedent("""\
@@ -539,6 +574,7 @@ def test_access_plus(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
     def test_length(self):
         code = textwrap.dedent("""\
     fruit = ['appel', 'banaan', 'kers']
@@ -551,6 +587,7 @@ def test_length(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_length2(self):
         code = textwrap.dedent("""\
@@ -564,6 +601,7 @@ def test_length2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_length(self):
         code = textwrap.dedent("""\
@@ -579,6 +617,7 @@ def test_print_length(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_sum_in_if(self):
         code = textwrap.dedent("""\
@@ -594,6 +633,7 @@ def test_sum_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_sum_in_right_side_if(self):
         code = textwrap.dedent("""\
@@ -609,6 +649,7 @@ def test_sum_in_right_side_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_min_in_if(self):
         code = textwrap.dedent("""\
@@ -624,6 +665,7 @@ def test_min_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_multiply_in_if(self):
         code = textwrap.dedent("""\
@@ -639,6 +681,7 @@ def test_multiply_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
diff --git a/tests/tests_level_21.py b/tests/tests_level_21.py
--- a/tests/tests_level_21.py
+++ b/tests/tests_level_21.py
@@ -31,21 +31,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam = Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord = input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -61,6 +65,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -76,6 +81,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -98,6 +104,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -111,6 +118,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -128,6 +136,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -145,6 +154,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -158,6 +168,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -171,6 +182,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -188,6 +200,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -203,6 +216,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -214,6 +228,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -227,6 +242,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -240,6 +256,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -264,6 +281,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -288,6 +306,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -301,6 +320,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -313,6 +333,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -326,6 +347,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -339,6 +361,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -362,6 +385,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -373,6 +397,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -384,6 +409,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_comment(self):
         code = textwrap.dedent("""\
@@ -396,6 +422,7 @@ def test_comment(self):
       # ['comment']""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentbegin(self):
         code = textwrap.dedent("""\
@@ -409,6 +436,7 @@ def test_commentbegin(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentresult(self):
         code = textwrap.dedent("""\
@@ -422,6 +450,7 @@ def test_commentresult(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller(self):
         code = textwrap.dedent("""\
@@ -435,6 +464,7 @@ def test_smaller(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bigger(self):
         code = textwrap.dedent("""\
@@ -448,6 +478,7 @@ def test_bigger(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_big_and_small(self):
         code = textwrap.dedent("""\
@@ -465,6 +496,7 @@ def test_big_and_small(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop(self):
         code = textwrap.dedent("""\
@@ -482,6 +514,7 @@ def test_whileloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop2(self):
         code = textwrap.dedent("""\
@@ -501,6 +534,7 @@ def test_whileloop2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop3(self):
         code = textwrap.dedent("""\
@@ -522,6 +556,7 @@ def test_whileloop3(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_access_plus(self):
         code = textwrap.dedent("""\
@@ -539,6 +574,7 @@ def test_access_plus(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
     def test_length(self):
         code = textwrap.dedent("""\
     fruit = ['appel', 'banaan', 'kers']
@@ -551,6 +587,7 @@ def test_length(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_length2(self):
         code = textwrap.dedent("""\
@@ -564,6 +601,7 @@ def test_length2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_length(self):
         code = textwrap.dedent("""\
@@ -579,6 +617,7 @@ def test_print_length(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_not_equal_one(self):
         code = textwrap.dedent("""\
@@ -595,6 +634,7 @@ def test_not_equal_one(self):
       print('Ik kom ook uit Nederland!')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_not_equal_two(self):
         code = textwrap.dedent("""\
@@ -611,6 +651,7 @@ def test_not_equal_two(self):
       print('Fout! Je mocht geen 5 zeggen')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_sum_in_if(self):
         code = textwrap.dedent("""\
@@ -626,6 +667,7 @@ def test_sum_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_sum_in_right_side_if(self):
         code = textwrap.dedent("""\
@@ -641,6 +683,7 @@ def test_sum_in_right_side_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_min_in_if(self):
         code = textwrap.dedent("""\
@@ -656,6 +699,7 @@ def test_min_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_multiply_in_if(self):
         code = textwrap.dedent("""\
@@ -671,6 +715,7 @@ def test_multiply_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
 # at one point we want a real "Indent" error and a better error message
diff --git a/tests/tests_level_22.py b/tests/tests_level_22.py
--- a/tests/tests_level_22.py
+++ b/tests/tests_level_22.py
@@ -31,21 +31,25 @@ def test_print(self):
         result = hedy.transpile("print('ik heet')", self.level)
         expected = "print('ik heet')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_var(self):
         result = hedy.transpile("naam = Hedy\nprint('ik heet' naam)", self.level)
         expected = "naam = 'Hedy'\nprint('ik heet'+str(naam))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_with_calc_no_spaces(self):
         result = hedy.transpile("print('5 keer 5 is ' 5*5)", self.level)
         expected = "print('5 keer 5 is '+str(int(5) * int(5)))"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_transpile_ask(self):
         result = hedy.transpile("antwoord = input('wat is je lievelingskleur?')", self.level)
         expected = "antwoord = input('wat is je lievelingskleur?')"
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_calculation_times_directly(self):
         code = textwrap.dedent("""\
@@ -61,6 +65,7 @@ def test_print_calculation_times_directly(self):
     print(str(int(nummer) * int(nummertwee)))""")
 
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
         self.assertEqual("30", run_code(result))
 
@@ -76,6 +81,7 @@ def test_if_with_indent(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_else(self):
         code = textwrap.dedent("""\
@@ -98,6 +104,7 @@ def test_if_else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_random(self):
         code = textwrap.dedent("""\
@@ -111,6 +118,7 @@ def test_print_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_loop(self):
         code = textwrap.dedent("""\
@@ -128,6 +136,7 @@ def test_for_loop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if__else(self):
         code = textwrap.dedent("""\
@@ -145,6 +154,7 @@ def test_if__else(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_forloop(self):
         code = textwrap.dedent("""\
@@ -158,6 +168,7 @@ def test_forloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_for_nesting(self):
         code = textwrap.dedent("""\
@@ -171,6 +182,7 @@ def test_for_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_nesting(self):
         code = textwrap.dedent("""\
@@ -188,6 +200,7 @@ def test_if_nesting(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_newprint(self):
         code = textwrap.dedent("""\
@@ -203,6 +216,7 @@ def test_newprint(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_list(self):
         code = textwrap.dedent("""\
@@ -214,6 +228,7 @@ def test_list(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_random(self):
         code = textwrap.dedent("""\
@@ -227,6 +242,7 @@ def test_random(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_specific_access(self):
         code = textwrap.dedent("""\
@@ -240,6 +256,7 @@ def test_specific_access(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     # note that print(str(highscore)) will not print as it will compare 'score[i]' as str to a variable
     def test_everything_combined(self):
@@ -264,6 +281,7 @@ def test_everything_combined(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_if_under_else_in_for(self):
         code = textwrap.dedent("""\
@@ -288,6 +306,7 @@ def test_if_under_else_in_for(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true(self):
         code = textwrap.dedent("""\
@@ -301,6 +320,7 @@ def test_bool_true(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false(self):
         code = textwrap.dedent("""\
@@ -313,6 +333,7 @@ def test_bool_false(self):
       print('ja')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_true2(self):
         code = textwrap.dedent("""\
@@ -326,6 +347,7 @@ def test_bool_true2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_false2(self):
         code = textwrap.dedent("""\
@@ -339,6 +361,7 @@ def test_bool_false2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bool_total(self):
         code = textwrap.dedent("""\
@@ -362,6 +385,7 @@ def test_bool_total(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_and(self):
         code = textwrap.dedent("""\
@@ -373,6 +397,7 @@ def test_and(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_or(self):
         code = textwrap.dedent("""\
@@ -384,6 +409,7 @@ def test_or(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_comment(self):
         code = textwrap.dedent("""\
@@ -396,6 +422,7 @@ def test_comment(self):
       # ['comment']""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentbegin(self):
         code = textwrap.dedent("""\
@@ -409,6 +436,7 @@ def test_commentbegin(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_commentresult(self):
         code = textwrap.dedent("""\
@@ -422,6 +450,7 @@ def test_commentresult(self):
       print('hallo')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller(self):
         code = textwrap.dedent("""\
@@ -435,6 +464,7 @@ def test_smaller(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bigger(self):
         code = textwrap.dedent("""\
@@ -448,6 +478,7 @@ def test_bigger(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_big_and_small(self):
         code = textwrap.dedent("""\
@@ -465,6 +496,7 @@ def test_big_and_small(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop(self):
         code = textwrap.dedent("""\
@@ -482,6 +514,7 @@ def test_whileloop(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop2(self):
         code = textwrap.dedent("""\
@@ -501,6 +534,7 @@ def test_whileloop2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_whileloop3(self):
         code = textwrap.dedent("""\
@@ -522,6 +556,7 @@ def test_whileloop3(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_access_plus(self):
         code = textwrap.dedent("""\
@@ -539,6 +574,7 @@ def test_access_plus(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
     def test_length(self):
         code = textwrap.dedent("""\
     fruit = ['appel', 'banaan', 'kers']
@@ -551,6 +587,7 @@ def test_length(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_length2(self):
         code = textwrap.dedent("""\
@@ -564,6 +601,7 @@ def test_length2(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_print_length(self):
         code = textwrap.dedent("""\
@@ -579,6 +617,7 @@ def test_print_length(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_not_equal_one(self):
         code = textwrap.dedent("""\
@@ -595,6 +634,7 @@ def test_not_equal_one(self):
       print('Ik kom ook uit Nederland!')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_not_equal_two(self):
         code = textwrap.dedent("""\
@@ -611,6 +651,7 @@ def test_not_equal_two(self):
       print('Fout! Je mocht geen 5 zeggen')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller_equal(self):
         code = textwrap.dedent("""\
@@ -623,6 +664,7 @@ def test_smaller_equal(self):
       print('Dan ben je jonger dan ik!')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_bigger_equal(self):
         code = textwrap.dedent("""\
@@ -635,6 +677,7 @@ def test_bigger_equal(self):
       print('Dan ben je jonger dan ik!')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_smaller_bigger_equal(self):
         code = textwrap.dedent("""\
@@ -651,6 +694,7 @@ def test_smaller_bigger_equal(self):
       print('Dan ben je ouder dan ik!')""")
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_sum_in_if(self):
         code = textwrap.dedent("""\
@@ -666,6 +710,7 @@ def test_sum_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_sum_in_right_side_if(self):
         code = textwrap.dedent("""\
@@ -681,6 +726,7 @@ def test_sum_in_right_side_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_min_in_if(self):
         code = textwrap.dedent("""\
@@ -696,6 +742,7 @@ def test_min_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 
     def test_multiply_in_if(self):
         code = textwrap.dedent("""\
@@ -711,6 +758,7 @@ def test_multiply_in_if(self):
 
         result = hedy.transpile(code, self.level)
         self.assertEqual(expected, result.code)
+        self.assertEqual(False, result.has_turtle)
 # programs with issues to see if we catch them properly
 # (so this should fail, for now)
 # at one point we want a real "Indent" error and a better error message