Added crypto unittest