Made unit test work when all tests are run together.