Add spec for #1006