Cast problem in test solved