delete-via-api test extracted to separate class