fixed rspec errors & reformatting errors
fixed rspec errors & reformatting errors