Auto leakdown test