Convert crypto to unit_test
Convert more tests