cleanup test condition logic.