Add unit test to show the failure in identical data type casting