added test for empty tag_with_weight