well the ordering parameter is actually a parmeter of the generic frame but it was created with "hibert" and all the test after was useless. 
const string tile_ordering = params.get_optional<string>("tile_ordering", "hilbert");
I will change it to 
const string tile_ordering = params.get_optional<string>("tile_ordering");
and that should work