[JBIDE-15598] corrected tests to delete vars before manipulating them