Add spec for initialization of state on before_create. Closes #91.