[#119] Add Windows support to the --test script.
[test] Refactor test script for organization.