Update tests to use XCTest, better HTTP stubbing