Add test case for get_textlines()