add tests and documentation for enhanced delay and custom response