Fix up a potential synchronization issue in the test case