Added test code for Objective-C interface