Add tests for ifEquals helper

Change-Id: I17a2bada2acb64671d35865eb99ecb0fccb6626e
Merge "Add tests for ifEquals helper"