Add feature tests as definitions when compiling examples.