added toEqual unit tests