Testing non-unique arguments in optimizer