added rspec tests for view_count model