only add @decl to variables that are assigned, update of declarations tests