it('should go to previous year', () => {
        component.date = new Date(2017, 11, 1);
        component.prevYear();
        expect(component.date.getFullYear()).toBe(2016);
    });