This is going to change global state which is not a good think for a unit test to be doing. To be honest, I am happy with the integration test alone, there's no complex logic here that warrants a unit test.