Small pep8 fix
Add first tests for the pkgdb2 API