Added unit tests for the module class.