Added test for getPlayer function