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.
Sorry, my bad choice of naming the variable led to this. It's actually error_element and here we are not catching any error or exception. The only here I will do is s/error/error_element/ for now.