fix errors when tests assign to variables named test or exception