green winlooseTest + refactoring for 100% coverage