Convert the tests to use the module system from NixOS.
Adopt the Python test driver from NixOS. Temporarily drop Sotest runs.