Subnet UI: Added boundary tests for subnet, converted to factory...

...and associate domain to subnet testcase

a) Converted subnet tests to factory approach 
b) Added coundary tests for subnet
c) Also added domain association to subnet test
Can I haz docstring?