alanoe/refactor tests

First move towards having a good and consistent test coverage in Cobbler