Refactored unit tests to use XCTest instead of SenTestingKit.