Test cases for nary conversion