Converter implemented as a function
some tests for the converter
Tests for conversion