fix bug in I2F I2B F2I etc...
Add corresponding test case