you should add a new test to simply check that the error callback is correctly called (so without the setTimeout stuff)