make expiration testing more robust by using rspec-retry

close #18