Fix #1000984

I was unable to provide a test case for the while keyword, the testsuite does not allow to check the absence of symbols. Instead I checked if a normal method/value is treated correctly.