Fix tests broken by removal of stdin feature