fixed a unit test when run in isolation