Features expire with tests included.

1. add expires support.
2. add expires tests.