improved use of pytest setup and teardown
got --nodynamicdatadelete working