Fix test in order to have mock that match new API behavior