Fixup tests with ctests by using generator expressions

Change-Id: I2629f349874add7622eb1b49e2ae6f1c21e3cf7e
Reviewed-on: http://review.couchbase.org/33294
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>