fix test_fgetc_ungetc
increase logging output, fixes s_0_0.test_safe_heap