This commit adds a test suite and fixes replacement of ip address nodes for IP addresses that are not part of a IP range directive.