Fix broken unit test break on non-Windows platforms