Add spec for stats extension