test(render): add comprehensive error handling tests (#4541)