Add tests for text_count_until_dir_delim.