unit test the list_packages function
add test to expose bug from #110
fix #110