fix test cast