Checkif it was called with the right params.