improve delete API test coverage