GPII-245: improvements to server shutdown and default test sequence in relation to it.
GPII-245: fixed all tests. The whole process of starting and stopping the test server should now be bullet-proof.