[V7r0] Cleanup & tests

as the title says...

I'm trying to build a common diracmock module to make unittests within DIRAC easier. More news soon.