All of the loops in this code will make it nearly impossible to figure out what failed.  Could you take a look at the gtest examples to see if there's a better pattern to follow when you want to parameterize the values of a test?  There must be a better way than this.