testcode:tests read file function