Refactoring CopyMakeBorder test