El Gamal signature tests and implementation