Converted tests to XCTest
Fixed usage of NS_RETURNS_NOT_RETAINED. Ivars should not have this attribute, builder's methods (with new/alloc/init prefixes) should have.