[tests] fixes issue of instrumented code not being generated properly

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>