add testcases for crypto codec