Fixed broken test$
Added cast in comparison