Bug fixes to test harness and iOS module.