add testing for gen_all_strings