Testing the caculateRewardPoints method