Fix tests for beta 5, use Alamofire and SwiftyJSON