fix config on Win platform, add test for sameexponent