test hook for enc.