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