Test Name error catch on user inputed code

that generates a name error like in the test case.