[CHEF-4158] Fix typo in test that causes variable to be set twice