Windows: fix sanity check for test executable