Resolve race condition: wait for response before checking mock expectations. refs #3782