Bug fixes to test harness and iOS SDK.