CBQE-0: fix basetestcase bug with repeated for

Change-Id: Id38c2a42f0acf250033b30c3c2ccd8b4435f8b78
Reviewed-on: http://review.couchbase.org/44266
Reviewed-by: Parag Agarwal <agarwal.parag@gmail.com>
Tested-by: Parag Agarwal <agarwal.parag@gmail.com>