Add spec for contrib class