Add tests for Alignment.to_phylip error handling