Added test for integer conversion bug

Added test for incorrect integer conversion from int16, int32 and int64