creating test case for Player class