Added conditional tests and examples.