Is there a way to test if a certificate will be renewed automatically before expiration on Linux?
Yes, probably. But, what ACME Client are you using? Instructions differ
Yes: Time travel !
Change the normal 30 day renewal period to a much bigger number.