added tests for player-service.js