Convert OCUnit to XCTest
Turn on analyze for tests too
Run tests for both iOS and OSX

- Use script target rather than build matrix
- Upgrade xctool as travis-ci's version is broken for iOS