fix err handler test