cleaned and limited output validation in test_entries and test_lines