added jasmine specs for Segment model