Fix a target test.

When checking inserted rule, there might be other ones present -
iterate through all of them to make sure we find ours.