consolidate stdin tests