fix for docs and a test example for labels