Split test for Windows and Unix.

Also fix test for Windows 8: It no longer verifies the title using
PowerShell. It only executes the API calls.
On Windows 7 and older though, we still continue to verify the title.