sophia: introduce new test subsystem / test generator.
move and refactor every test.