Update test before decryption in find function