Test local_variables in notice payload