add round borders with gap test