Add setSubnets/Validate functions, make more tests.