Use NSPointerArray of weak pointers

* Upgrade to XCTest
* Fix #2