Which countries in Europe impose language tests for residency permits?

Certain countries across Europe demand foreign citizens pass a language test to qualify for certain residency permits. But how does each country compare and what level of language do they require?