unit test for format converter from Mini-project 3