Utils: test set margin