Added: tests for function addPlayer