Added a checkModuleOk function and adapted tests