Added test for making it possible to override the module name, if needed.
And here goes the actual implementation.