implemented tests for bar repeat validation