fix rubocop in test