update tests to XCTest
ARC conversions
Fixed Mac tests with XCTest
Fixed iOS tests with XCTest