Use cross-spawn in tests for Windows compatibility