Fix shared resource bug for unit tests.

Address issue where multiple tests running simultaneously modified test data, causing tests to fail.