Add test for annotate function