deleted parameter code_len from set_* functions since it was useless.
added xlat call in testfile just for fun