more fixes to iOS test startup/shutdown