Testing if variables are assigned