[test][algorithms] add missing include

Add missing include of `<string>`