add test spec for api remove