#198 adding unit test for type conversion