tests: Fix the tests to initialize the modules properly