Fix tests failing on Windows (reported by Francisco J. Ossandón)