Fixed the camelToSnake function. The issue was that the original implementation didn't handle consecutive uppercase letters (acronyms) correctly. For example, 'XMLHttpRequest' should become 'xml_http_request', not 'xmlhttp_request'. The fix adds logic to detect acronym boundaries by checking if the previous character is uppercase and the next is lowercase, inserting an underscore in that case. All tests now pass.