reduce code duplication in aof.tcl. move creation of clients into the test so that it can be skipped (cherry picked from commit 1b7ba44e7917082ac6d5523666d3b4ab210dfbad)