added anew function in the statsComponent and it's test