NSRunLoop fix in tests, casting of response in connection:didReceiveResponse, update .gitignore