Fixed comparison error in test