added test to verify that NSValue return type is handled correctly. -James