add test for decryptSync()