I would add some tests for the 'onerror' and 'onsuccess' scenarios.