Use cross-spawn in tests for Windows compatibility

This should fix tests on Windows.