iOS: add a test flag to control if we want to add the test definition or not.