Add tests for template, update Gemfile, fix rubocop offence