requiredby for 'already installed' packages, so the test didn't work properly. Once these errors were fixed, both tests pass fine.