iOS: add a few test cases