Add failing test case for #160.
Fix #160.
Merge pull request #161 from fedora-infra/feature/more-pkgdb-fixes

Fix odd pkgdb corner case.