test: add crypto unit tests