Better param name
Don't rely on requiring the module initially

Originally the actual module was required before the mock was put into
place.  This is bad when mocking libs that run with side effects.
Test lack of side effects, flatten structure