Fixing total_occurrences unlimited value and tested with rspec