Changed all the C-style casts in the unit tests by boolean EXPECT_TRUE(...) checks. No really better way when we're dealing with unsigned