Add tests for get_player_index