Add test case for crypto