Backport REST response converted data method and add simple tests for it