Fix SysInfo test

* Fix tests after #4811
* Enable SysInfo tests under win32
* Full rewrite of all SysInfo tests to do real testing