update test before decryption in find function