testbench: improve imuxsock coverage

so far, all test required root privileges, which made testing
quite complicated and resulted in no testing of this module
on the testbench machines at all. Now we can also run without
root privileges.

To support the new tests, test tools were also improved.