Unit test for the function player_opponent has been added.