E-statistics: group invariance and anytime valid testing