Fix test fails and move tests from ShadowCookieManagerTest to CookieManagerTest