Could we add a mockup for `onsuccess` & `onerror` as well?