added one test case and example for ActiveRecord::Base.to_param method

Follow up to: #12894 

Added One More Example for `ActiveRecord::Base.to_param` to clear the `truncation` effect of the `to_param` method and its test case.