Fixed the ssh problems with tests. Got rid of all the deprecated stuff from older pax-exam versions and fixed some general code issues.