Add unit test for condition
Merge pull request #1 from mbabker/PR4521

Add unit test for condition