fixed test_entries_from_lines to handle single-line entries