Add new Jasmine test to ensure Segment.io is called when appropriate