I should have asked and now do, how the code quality is (in their opinion) and if I can take a look at a representative sample or samples. This is probably the most important. Also, if they practice TDD so I can avoid the job.
Depends on your opinion. My opinion is that it's a ridiculous idea based on the concept of unit testing which for most code makes absolutely no sense (because at least with OOP code, you hardly ever have units worth testing). Then again, some people swear by them and TDD. Whatever rocks your boat. But regardless of your opinion, asking if they use it is a good idea so you know what you're getting into.