Updated testsystems.py with several improvements / bugfixes from repex updates over the weekend.