updated tests for error within callbacks