Reverse biased pn junction with leakage current