Restore global static array in test case