Bug 788928: test onerror