Add NSNumber test to isXYPair