expose stdin so tests can write to it