add unit tests for selection border