Fix tests to detect default values and un-ended result streams