replaced XCAssert to expect.