Fixes record test on Windows