Fixed rubocop offences on libraries and tests folders