Add test cases for lib.maybe_convert_objects directly