Run-length test