Fixes some style. Improved tests coverage for bio,oid,digest and cipher. Prepare digest for inheritance in future mac module