Added unit tests for has_final and has_winner.