Fixes for testing/testcase

The main part is to address the supervisor path too long we sometimes have with theia or slaprunner tests.

Some minor fixes are also included

See merge request !242
8 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds