added rspec for check count