adjust tests
add decode_file
support encoding