@Tess **************
yes. You would have to do your test and go in Bangkok first then fly up to Chiang Mai the day after.
Airline will sell you ticket though the bar stewards.
There are sealed flights to Phuket for transit but i have not seen sealed flights to Chiang Mai mentioned anywhere