Enhance the unit-tests for the list_packages methods in flask.ui.packages