The fast-food giant plans to open 10 CosMc's locations, including nine restaurants in Texas, by the end of 2024 in a test.