added test coverage for horizontal rulers and fixed rulers with underscores