Fixed tensor4's cast from different sizes test