Fixed rubocop test offences