Unit test case for utils.py