imroved unit testing coverage of crypto routines