* Added a aboutToExpire(key) callback.
* Updated test cases.