Tables has it right. K/D counts in all modes where the only main objective (as stated by the game) is to kill people. W/L is in all modes where you can win or lose. The only exceptionis the Lab, because both WL and KD don't count there.
I could've sworn the TDM labs still counted towards your KD.