add public function for secret private key empty test