added digest calls example
added a directive testing example