Added Jasmine tests for digest helper