Fix and add tests for fasta_file.