Convert tests to XCTest (#34)
Remove dead code from tests.