testing rest result structure