reintroduce old testing mode for run.py
refactored test_integration, so that those tests can be called from multiple places.
running tests again from run.py works.
Merge pull request #204 from davidhalter/testing

Make run.py testing reusable