Fixed the failing share test when the test is run along with all other tests.