Fix Access Denied Error when running tests.