Added optimized driver tests
Added optimized port delete tests
Added network delete in optimized driver test
Fixed flake8