tests: handling signal on win32 properly