Fixing a unit test failing due to external factor