Fix racy test