Add test, implementation for new `expires` field.