rewrite native testing procedure for iOS