Replaced toBe with toEqual matcher