encoding test solution