Upgrade to React 0.9.0-rc1 and fix warnings in tests