There are a lot of strict rules and rules of thumb which may
increase the quality of tests written for the tool pair
mysqltest/mysqltest-run.pl (MTR). The following presentation should
give you some hints.