Duplicated code test