closes #49:  Add onFailure and onSuccess callbacks for test cases. enhancement.