Add unit test for a function in convert2.py