I have the following code in a test where I am mocking the function getName, getName in the real code is passed state and an id, it uses the id to return a single name in a map