Fixed bugs in test scripts
Fixed bugs in reading win matrix and more