Test credential expiry