Cleanup style and fix OS checks
Add tests and prepare module for the forge