BUG: Use generator expression to specify test targets

Fixes tests not running with extension build.  Thanks to @jcfr for the idea.

Change-Id: Ic049d254c7e4249fc0ce947212e9bd598e7b6626