repair invalid test in format conversion