Update tests to use XCTest, better HTTP stubbign