improve test coverage of delivery