Add success & error callback unit tests.
Add error callback unit test.