put in the test for the expiry date consideration and the functionality