subnets tests and fixes