Added emitting for conditionals as well as tests for them.