reformat the rspec tests and make it rubocop pass