changed to new api url
migrate to xctest
fix implicit cast warnings