testHasWon()

Added a test. It passes.