Split module for win32 and adjust related test cases