Added tests for ifequal.

Change-Id: I9e7b021272abbb8f0eaf1a79ad89c119b1024173