player class and tests