Added unit-tests for file type conversion function