Fix tests
Break long lines

...
Fix deprecation warnings

Apparently .repeat() for str and .into_string() have been deprecated,
replace them with suggested alternatives