Fix unnecessary dependency to test framework if no tests defined.

Signed-off-by: Daniel Schnell <dschnell@skerpa.com>