Added some tests for CastUtil class