Add tests for expiry parsing