Refactored test method to use NSValueFromPrimitive macros