add spec for stub_const