Add test: restore() should install missing dependencies