Fix tests and declare missing module dependencies.