coverted datatype tests to unittest