Test passes if there are 7 filled black squares and if the leftmost one is the smallest of all while the rightmost one is the biggest of all.

X X X X X X X