composer: fixed missing dependency
replace deprecated Strings::random() by Random::generate()
typos
added tests