Found the time to make the auto-generated unittests work with dependencies. Its not pretty, but it gets the job done for now.