Apple tests motion detection features for iPhone