Fix cross-platform issue with tests