Create retry tests (WIP)

This branch is blocked on mimic changes for injecting specific behavior or number of errors.