determine_wants must return a list

This patch forces determine_wants to return an empty list
when advertise_refs is True.
Add test for determine_wants (advertise_refs True)

Add test to ensure that determine_wants return an empty
list when advertise_refs is True.
Fix empty pack test.