Added unit tests for has_final and has_winner.
Added unit tests for more utils.