Clarify documentation and verify what I say by adding tests.

I don't quite understand. In the test it looks like has_active_dofs() true only if the local partition has dofs while the documentation says that it will true on all machines involved.