[yahoo] Improve error detection and update tests