Fix code example in testing guide (#6963)
Fix code example in testing guide (#6963)

Fix a duplicated variable definition and missing one in a testing guide code example.
ReactTraining/react-router,rackt/react-router,reactjs/react-router,ReactTraining/react-router,ReactTraining/react-router,rackt/react-router,reactjs/react-router,ReactTraining/react-router