Allow test file paths with hyphens by replacing hyphens with underscores in module name.