tests iPhone code