Fixed bug in toHaveBeenCalledWith