extract get_module_names function
Allow for tests that do not use any modules in the repo