Added test for Player.clone and fixed a bug in Player.clone