add unit test for converter