Add unit tests for Module.php