deprecation fix: changed Spec to RSpec in model_spec
added expire_in and expire_at methods