binary comprehension tests