added unit test for module class and updated composer.json and readme