fixed error hndler provider and unit test