tests output regardless of order