Unit tests have been added to the module to improve code reliability, ensure expected behavior, and support future maintenance.
Added unit testing