a wealth of tests for the pkg_managers module

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>