simplify test for test_255_outputs using list comprehensions