Jacalvo/unit tests

fixed/recovered most of the unit tests in common and core, the remaining ones are skipped at the moment

also fixed a bug in EBox::Apache::setRestrictedResource