Add and test cryto.file stream callbacks