I have a React app in which I have some state defined in the App component but which is populated in a child component and I\'m having trouble creating a unit test using react-t