spec TransmissionFile#determine_transaction_set_kind and partial refactor