These tests look pretty comprehensive. I also have these elixir tests https://github.com/apache/couchdb/blob/279b9d95a92fad86f30aa13e0c6b3c5f2757d065/test/elixir/test/reduce_builtin_grouplevel_tests.exs    that might also be worth adding them. 