Fixed many subnet related test cases.

Assertion for `test_create_subnet_3` depends on whether checkbox
or selection list exists.

Fixed many other miscellaneous test cases.
@Ichimonji10 , I agree about single use variable, but at times if it's a lengthy statement, I automatically break it into 2 statements for readability sake. Atleast I feel it easy to read the code.