fix the nested if comparison values in unit test

This is a fix for issue ACT-2116