write initial generic tests for all crypto