crypto utils unit tests