kmstest: fix bug in setups_to_outputs()