Test: Allow time for file to be written