Added failing test.
Fixed BG_HORIZONTAL_LENGTH_RE bug.