fixed error in provider error test