used rubocop and updated tests with yml file