draft some unittesting for Crypography module