add a test for getKey() with an expiration date, put back ttl check to correct test in class