Update tests to XCTest

Convert unit tests from SenTestingKit to XCTest. I found it was easier to just delete the old test target, create a new test target and re-add the test files.