Migrate to XCTest

Thought you might be interested in this. Wasn't actually trivial; had to recreate the test target to get it working...