adding test where variable is set in test