Added tests, that test conversion to correct datatypes

As requested, tests are here