Refactored subset generator tests

Used list comprehensions for building result sets.
Refactored preorder generator tests

List comprehensions are used for geenrating result sets.