Delegate test

@prachigauriar please review
Good catch - at some point I accidentally deleted setting it to random error. See updated.