fix has count needs to return 0 not the local count when there is no match
add test for the pullup bug that got fixed