Move portDB attrs to loop() local vars.

lots of these tests were directly accessing the ports map to confirm port existence. because that map is no longer externally available, the tests were changed to implicitly test that the ports can no longer be acquired.

I would like a more explicit way to test this, but without writing some test-specific API for the ports struct I'm not sure what to do.

ideas? or is this acceptable?