add labelcache test

check that the label cache is retrieved and has the right labels.