Inset and outset border coloring is incorrect on left side border.

This patch fixes this issue and adds new tests to cover the cases.