added rspec for index & show method