features.app_alerts should be true in test.yml and testext.yml. Then you don't need this conditional.