[Olena-patches] milena r1565: Add full tests for border