added tmp-file and fixed char-ready? test