A module scope issue and test