[fix test] cast integer as NSUInteger

XCTest is encoding primitives into NSValue. NSValue
checks type for equality.