Add Modules::loaded method
Add unit test for Modules class.