test for getting all labels